package com.cx.meta.model.vo;

import com.cx.meta.dto.CxUser;

import java.io.Serializable;

/**
 * @author flysand
 * @package com.cx.meta.model.vo
 * @date 2021-11-18 00:56
 * @des UserToken:
 */
public class UserToken extends CxUser implements Serializable {
    private static final long serialVersionUID = -141412117008983674L;
    private String userId;
    private String token;
    private long timeout;

    private String ip;

    public UserToken() {

    }

    public UserToken(String token, long timeout) {
        this.token = token;
        this.timeout = timeout;
    }

    public UserToken(String userId, String token, long timeout) {
        this.userId = userId;
        this.token = token;
        this.timeout = timeout;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public long getTimeout() {
        return timeout;
    }

    public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}
